﻿
using D.Medicalcare.Domain.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace D.Medicalcare.Infrastructure
{
    /// <summary>
    /// 数据库上下文
    /// </summary>
    public class MyDbContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options">参数</param>
        public MyDbContext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 医院导航表
        /// </summary>
        public DbSet<HospitalNavigation> HospitalNavigations { get; set; }
        /// <summary>
        /// 套餐类型表
        /// </summary>
        public DbSet<PackageTypeModel> PackageTypeModel { get; set; }
        /// <summary>
        /// 体检项目表
        /// </summary>
        public DbSet<PhysicalExaminationItems> PhysicalExaminationItems { get; set; }
        /// <summary>
        /// 体验套餐表
        /// </summary>
        public DbSet<HealthCheckPackage> HealthCheckPackages { get; set; }
        /// <summary>
        /// 医院简介表
        /// </summary>
        public DbSet<IntroductionHospitalModel> IntroductionHospitalModel { get; set; }
        /// <summary>
        /// 职称表
        /// </summary>
        public DbSet<TitleManagement> TitleManagement { get; set; }

        /// <summary>
        /// 科室管理
        /// </summary>
        public DbSet<Department> Departments { get; set; }

        /// <summary>
        /// 医生管理
        /// </summary>
        public DbSet<Doctor> Doctors { get; set; }
        /// <summary>
        /// 预约须知
        /// </summary>
        public DbSet<ReserInstruc> ReserInstrucs { get; set; }
        /// <summary>
        /// 病案配送须知
        /// </summary>
        public DbSet<Instrufordelime> Instrufordelimes { get; set; }
        /// <summary>
        /// 健康百科
        /// </summary>
        public DbSet<HeaEncyclope> HeaEncyclope { get; set; }
        /// <summary>
        /// 就诊人管理
        /// </summary>
        public DbSet<Patient> Patient { get; set; }
        /// <summary>
        /// 消息公告
        /// </summary>
        public DbSet<Message> Message { get; set; }
        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<User> User { get; set; }
        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Role> Role { get; set; }
        /// <summary>
        /// 用户角色表
        /// </summary>
        public DbSet<UserRole> UserRole { get; set; }
        /// <summary>
        /// 菜单表
        /// </summary>
        public DbSet<Menu> Menu { get; set; }
        /// <summary>
        /// 角色权限表
        /// </summary>
        public DbSet<RoleMenu> RoleMenu { get; set; }
        /// <summary>
        /// 用户反馈表
        /// </summary>
        public DbSet<Feedback> Feedback { get; set; }
        /// <summary>
        /// 院内导航表
        /// </summary>
        public DbSet<NavigationintheHospital> NavigationintheHospital { get; set; }
        /// <summary>
        /// 省表
        /// </summary>
        public DbSet<Province> Province { get; set; }
        /// <summary>
        /// 城市表
        /// </summary>
        public DbSet<City> City { get; set; }
        /// <summary>
        /// 区县表
        /// </summary>
        public DbSet<County> County { get; set; }
        /// <summary>
        /// 医生排班表
        /// </summary>
        public DbSet<DoctorScheduling> DoctorScheduling { get; set; }
        /// <summary>
        /// 问题反馈表
        /// </summary>
        public DbSet<IssueFeedback> IssueFeedback { get; set; }
        /// <summary>
        /// 预约挂号表
        /// </summary>
        public DbSet<Registration> Registration { get; set; }
        /// <summary>
        /// 门诊消费表
        /// </summary>
        public DbSet<DoorSpend> DoorSpend { get; set; }
        /// <summary>
        /// 门诊充值表
        /// </summary>
        public DbSet<OutpatientConsumption> OutpatientConsumption { get; set; }



        /// <summary>
        /// 体检
        /// </summary>
        public DbSet<Physicalexamination> Physicalexaminations { get; set; }

        /// <summary>
        /// 体检须知
        /// </summary>
        public DbSet<PhysicalExaminationInstructions> PhysicalExaminationInstructionss { get; set; }
        /// <summary>
        /// 支付表
        /// </summary>
        public DbSet<WebPay>  WebPay { get; set; }
        /// <summary>
        /// 实时挂号关系表
        /// </summary>
        public DbSet<RegDoctorInfo> RegDoctorInfo { get; set; }
        
        

        /// <summary>
        /// 账户表
        /// </summary>
        public DbSet<Accountbalance> Accountbalances { get; set; }


        /// <summary>
        /// 退款记录表
        /// </summary>
        public DbSet<Refund> Refunds { get; set; }
    }
}
